<h1>Listing base_materials</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th>Image</th>
    <th>Price</th>
  </tr>

<% for base_material in @base_materials %>
  <tr>
    <td><%=h base_material.name %></td>
    <td><%=h base_material.description %></td>
    <td><%=h base_material.image %></td>
    <td><%=h base_material.price %></td>
    <td><%= link_to 'Show', [:admin, base_material] %></td>
    <td><%= link_to 'Edit', edit_admin_base_material_path(base_material) %></td>
    <td><%= link_to 'Destroy', [:admin, base_material], :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New base_material', new_admin_base_material_path %>
